package s47.dqj.dao;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;

import s47.dqj.bean.FactDepartmentDateDetail;

public interface FactDepartmentDateDetailDaoInf {

	@Resource(name = "sessionFactory")
	public abstract void setSupperSessionFactory(SessionFactory sessionFactory);

	/**
	 * 查看本次上班表的时间上班情况
	 * @param factDepartmentDateDetail
	 * @return
	 */
	public abstract List<FactDepartmentDateDetail> findAllByDdid(
			FactDepartmentDateDetail factDepartmentDateDetail);

	/**
	 * 根据自定义条件查询
	 * @param hql
	 * @param pageNum
	 * @return
	 */
	public abstract List<FactDepartmentDateDetail> findAllByCondition(
			String hql, Integer pageNum);

	/**
	 * 获取页数(对查找想要的DepartmentPositionCost记录分页)
	 * @return
	 */
	public abstract List<Integer> selectPageTotal(String tempHQL);

	/**
	 * 新增
	 * @param factDepartmentDateDetail
	 */
	public abstract void save(FactDepartmentDateDetail factDepartmentDateDetail);

	/**
	 * 修改
	 * @param factDepartmentDateDetail
	 */
	public abstract void update(
			FactDepartmentDateDetail factDepartmentDateDetail);

	/**
	 * 删除
	 * @param factDepartmentDateDetail
	 */
	public abstract void delete(
			FactDepartmentDateDetail factDepartmentDateDetail);

}